'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    /**
     * Add altering commands here.
     *
     * Example:
     * await queryInterface.createTable('users', { id: Sequelize.INTEGER });
     */

    const {INTEGER,STRING,DATE} = Sequelize;
    await queryInterface.createTable("user",{
      id: { type: INTEGER, primaryKey: true, autoIncrement: true },
      name:STRING,
      age:INTEGER,
      created_at:DATE,
      updated_at:DATE,
      deleted_at:DATE
    });

  },

  down: async (queryInterface, Sequelize) => {
    /**
     * Add reverting commands here.
     *
     * Example:
     * await queryInterface.dropTable('users');
     */
    await queryInterface.dropTable("user");
  }
};
